package com.study;

public class Father01 {
    public String xingShi = "刘";
    public double money;
    public int house = 1;
    public int age;

    Father01() {
        System.out.println("父类的构造方法,无参构造");
    }

    Father01(int age) {
        System.out.println("父类的构造方法，有参构造");
        this.age = age;
    }

    public String moTuo() {
        return "我会开摩托车！";
    }

    public void hobby() {
        System.out.println("我喜欢听唢呐");
    }

    public void work() {
        System.out.println("我是开超市的");
    }
}
